import * as PIXI from "pixi.js";
import mitt from "mitt";
import Alloytouch from "alloytouch";
import { TweenMax, TimelineMax } from "gsap/TweenMax";

class ParameterMethod {
  public width: number = 1200;
  public height: number = 1200;
  public PIXI = PIXI;
  public APP = new PIXI.Application({
    width: this.width,
    height: this.height,
    // backgroundColor: 0xffffff,
    backgroundColor: 0x000000,
    resolution: 1,
  });
  public stage = this.APP.stage; // 舞台
  public ListeningEvent = mitt(); // 事件监听
  public Alloytouch =  Alloytouch;
  public TweenMax =  TweenMax;
  public TimelineMax =  TimelineMax;
  public start(): void {
    this.APP.start();
  }
  public stop(): void {
    this.APP.stop();
  }
  public Reset(): void {
    location.reload();
  }
}
export default new ParameterMethod();
